<!DOCTYPE html>
<html>
<head div_body=v0AuKC >
    <meta charset="UTF-8">
    <title>查看订单</title>
    {template 'stourtravel/public/public_min_js'}
    {Common::getCss('style.css,base.css,order-manage.css,base_new.css')}
    {Common::getScript("jquery.validate.js,choose.js,jquery.upload.js")}
</head>
<body>
{include "admin/spot/order/status/box-order-refund"}

<a class="btn btn-warning size-L radius ml-5 va-m" id="confirm_qztk" href="javascript:;" >确认</a>
<a class="btn  size-L radius ml-5 va-m" id="no_confirm_qztk" href="javascript:;" >取消</a>

<script>
    $(function(){
        $('.order-refund-box').show()
        $('#confirm_qztk').click(function () {
            let refund_cost=$('#refund_cost').val();
            let refund_reason=$('#refund_reason').val();
            let refund_proof=$('#refund_proof').val();
            let refund_type= $("input[name='refund_type']:checked").val();
            let refund_source= $("select[name='refund_source']").val();
            $.ajax({
                url: SITEURL + "spot/admin/order/ajax_confirm_qztk",
                type: 'post',
                dataType: 'json',
                data: {refund_type: refund_type,refund_source:refund_source, ordersn: "{$ordersn}", refund_reason: refund_reason, refund_cost: refund_cost,refund_proof:refund_proof},
                success: function (data) {
                    if (data.status) {
                        ST.Util.responseDialog({},true);
                    }else{
                        ST.Util.showMsg(data.msg,5,1000);
                        return false;
                    }
                }
            });
        })
    })
</script>
</body>
</html>